/**
 * 
 */
package com.gragra.applications;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
/**
 * @author Christoph Teichmann
 * created Jan 9, 2013 9:35:08 PM
 * @version 0.1
 */
public class NoTags
{
	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new FileReader(args[0]));
		BufferedWriter bw = new BufferedWriter(new FileWriter(args[1]));
		String line;
		boolean first = true;
		while((line = br.readLine()) != null)
		{
			if(first)
			{first = false;}
			else
			{bw.newLine();}
			bw.write(line.replaceAll("_\\S+", ""));
		}
		br.close();
		bw.close();
	}
}